<meta charset="utf-8" />
<form class="form-horizontal" role="form"
	onsubmit="return submitForm(this);" action="mpomng/function/editFunctionOption.do" id="useredit_form">
	<br />
	<div class="form-group">
	<input  type='hidden' id='agentId' name='agentId'/>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> 商户编号： </label>
		<div class="col-sm-9">
			<input type="text" id="custId" name="custId" placeholder="请输入[商户编号]"
				validate="true" class="col-xs-10 col-sm-9" readonly="readonly" />
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> 合作商名称： </label>
		<div class="col-sm-9">
			<input type="text" id="agentName" name="agentName"
				 validate="true" class="col-xs-10 col-sm-9" readonly="readonly" />
		</div>
	</div>
	<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> 功能名称: </label>
		<div class="col-sm-4">
			<select rel="obj.options" location="mpomng/function/selectFuncList.do" name="funcId"
				id="funcId" data-placeholder="请选择功能名称"
				style="width: 120px; vertical-align: middle;">
				<option value=''>--请选择--</option>
			</select>
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> 选项名称: </label>
		<div class="col-sm-4">
			<select rel="obj.options" location="mpomng/function/selectOptionList.do" name="optionId"
				id="optionId" data-placeholder="请选择选项名称"
				style="width: 120px; vertical-align: middle;">
				<option value=''>--请选择--</option>
			</select>
		</div>
	<div class="form-actions align-right  form-button-box" style="margin-top: 10px">
			<button class="btn btn-info" type="submit">
				<!-- <i class="ace-icon fa fa-check bigger-110"></i>  -->保存
			</button>

			&nbsp; 
			<button class="btn" type="button" onclick="javascript:dialog.close(this);">
				 关闭
			</button>
		</div>
</form>
<script type="text/javascript">
	function submitForm(obj) {
		//自定义匿名回调函数。 系统默认回调函数：dialogAjaxDone
		return validateCallback(obj, function(result) {
			if (result.rspcod == 200) {
				msg.alert("提示", result.rspmsg, 'correct');
				$("#grid-table").trigger("reloadGrid");
				dialog.close(obj);
			} else {
				msg.alert("错误", result.rspmsg + " 错误代码：" + result.rspcod,
						'error');
			}
		});
	}
</script>

